Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 6 - Printing Resources / Printing Resources Reference
Constants and Data Types


The Resolution Structure

The resolution structure, of data type gxResolutionRec, defines the format of the resolution ('resl') resource.

struct gxResolutionRec {
   short    rangeType;
   short    xMinimumResolution;
   short    xMaximumResolution;
   short    yMinimumResolution;
   short    yMaximumResolution;
   short    resolutionCount;
   Point    resolutions[1];
};

typedef struct gxResolutionRec gxResolutionRec, 
*gxResolutionPtr, **gxResolutionHdl;
Field Description
rangeType
The type of resolution range being defined. This value is currently always 1.
xMinimumResolution
The minimum horizontal resolution supported by the driver in dots per inch (dpi).
xMaximumResolution
The maximum horizontal resolution supported by the driver in dpi.
yMinimumResolution
The minimum vertical resolution supported by the driver in dpi.
yMaximumResolution
The maximum vertical resolution supported by the driver in dpi.
resolutionCount

The number of entries in the resolutions array.
resolutions
An array of points, each of which defines a printing resolution, in dots per inch, supported by the driver. The x value of each point defines the horizontal resolution, and the y value of each point defines the vertical resolution.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help